﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace GameLib1
{
    class PlayerControlledEntity : GameObject
    {
        public enum TYPE
        {
            SWARM, 
            SOLDIER,
            OVERLORD,
            CREEPER,
        }

        public PlayerControlledEntity( Vector2 pos, TYPE type ) : base( pos,
            (type == TYPE.SWARM) ? "swarm" : (type == TYPE.SOLDIER ? "soldier" : (type == TYPE.OVERLORD ? "overlord" : (type == TYPE.CREEPER ? "creeper" : "PH")) ) 
            )
        {
            switch (type)
            {
                case TYPE.SWARM:
                    this.mLife = 100.0f;
                    this.mExperience = 0.0f;
                    break;
                
                case TYPE.SOLDIER:
                    this.mLife = 100.0f;
                    this.mExperience = 0.0f;
                    break;
                
                case TYPE.OVERLORD:
                    this.mLife = 100.0f;
                    this.mExperience = 0.0f;
                    break;

                case TYPE.CREEPER:
                    this.mLife = 100.0f;
                    this.mExperience = 0.0f;
                    break;
                
                default:
                    System.Console.Error.WriteLine("Uh oh, what did you do?");
                    break;
            }
        }

        public void Update(float dt)
        {
            /*
             * TODO:
             * - Handle Movement 
             * - Handle Collision With Enemies
             *   % Attacking
             *   % getting hit
             *   % etc
             * - Handle Experience
             * - Handle Death
             * 
             */

            base.Update(dt);
        }

    }
}
